import { DescItem } from "@/components/GuatDescriptions/type";

export const baseInfoDesc: DescItem[] = [
  {
    label: "学号",
    path: "userNo",
  },
  {
    label: "角色",
    path: "role.roleName",
    component: "Tag",
    componentProps: {
      color: (value) => {
        return !!value ? "red" : "green";
      },
    },
  },
  {
    label: "年级",
    path: "grade",
  },
  {
    label: "注册时间",
    path: "registerTime",
  },
  {
    label: "当前状态",
    path: "status",
    component: "Tag",
    componentProps: {
      color: (value) => {
        return !!value ? "red" : "green";
      },
    },
    mapping: (value) => {
      return !!value ? "禁止" : "正常";
    },
  },
  {
    label: "当前积分",
    path: "points",
  },
];
